/**
 * HW9
 *
 * brief description of the program
 *
 * This program is released to public domain according to
 * author's wish, you can view full license at
 * http://tomatoeskit.org/upload/PublicDomainLicense.txt
 *
 * @author Fangning CHENG (Alpha.L Cheng) <chengf@purdue.edu>
 *
 * @lab section number 
 *
 * @date Sep 9, 2013
 *
 */

import java.util.Scanner;

public class Groucho {

    private String secret;
    
    public Groucho(String _secret)
    {
        secret = _secret;
    }
    
    public boolean saysSecret(String line)
    {
        if (line.indexOf(secret) == -1)
            return false;
        else
            return true;
    }
    
    public String getSecret()
    {
        return secret;
    }
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Groucho groucho = new Groucho(in.nextLine());
        while(in.hasNextLine()) {
            if(groucho.saysSecret(in.nextLine()))
                System.out.printf("You have won $100 Secret word is %s\n", groucho.getSecret());
        }
        in.close();
    }

}
